﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.Diagnostics.Logging;

namespace YasharEl.Infrastructure.ApplicationModel.Bootstrap.Reporting
{
    public class LoggingIBootstrappingProcessReporter : IBootstrappingProcessReporter
    {
        ILogger Logger { get; set; }

        #region IBootstrappingProcessReporter Members

        public void Report(IReportingContext context)
        {
            if (Logger != null)
            {
                Logger.Info("BootstrappingProcessReporter: " + context.ToString());
            }
        }

        #endregion
    }
}
